﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AssetSystem.models
{
    // 规则实体类
    [SugarTable("asset_rules")]
    public class AssetRule
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(Length = 100)]
        public string Keywords { get; set; }

        [SugarColumn(Length = 20)]
        public string Prefix { get; set; }

        public int NumberLength { get; set; }

        [SugarColumn(IsIgnore = true)]
        public bool IsDefault { get; set; } // 不存储到数据库
    }

    

}
